import request from '@/utils/axiosRequest.js'

// 水票包

// 查询全部
export function listTicketGoods() {
    return request({
        url: "/system/ticketGoods",
        method: "get"
    })
}

// 分页查询
export function getTicketGoodss(pageNo, pageSize) {
    let url = "/system/ticketGoods/page?pageNo=";
    url = url + (pageNo ? pageNo : "");
    url = url + "&pageSize=" + (pageSize ? pageSize : "");
    return request({
        url: url,
        method: "get"
    })
}

// 添加
export function addTicketGoods(ticketGoods) {
    return request({
        url: "/system/ticketGoods",
        method: "post",
        data: ticketGoods
    })
}

// 更新
export function updateTicketGoods(ticketGoods) {
    return request({
        url: "/system/ticketGoods",
        method: "put",
        data: ticketGoods
    })
}

// 删除
export function deleteTicketGoodsById(ticketGoodsId) {
    return request({
        url: "/system/ticketGoods/" + ticketGoodsId,
        method: "delete"
    })
}
